package org.yscz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 因子表
 * @author achen
 * @create 2021-10-09 15:32
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_factor")
public class Factor implements Serializable {
    /**
     * 因子ID
     */
    @TableId(value = "factor_id", type = IdType.AUTO)
    private Long factorId;

    /**
     * 因子名称
     */
    @TableField(value = "factor_name")
    private String factorName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date updateTime;

    /**
     * 算法ID
     */
    @TableField(value = "alg_id_fk")
    private Long algIdFk;
}
